package com.media.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @Author: Lenovo
 * @Description: TODO
 * @DateTime: 2023/9/15 9:28
 **/
@Data
@ToString
@ApiModel("预发布表")
public class Publish {
    @ApiModelProperty(value = "视频id")
//    @TableId(value = "id", type = IdType.AUTO)
    private String id;
    @ApiModelProperty(value = "视频标题", required = true)
    private String title;
    @ApiModelProperty(value = "上传者Id")
    private Integer uploader;
    @ApiModelProperty(value = "上传者用户名")
    private String uploaderName;
    @ApiModelProperty(value = "上传时间")
    private Timestamp uploadTime;
    @ApiModelProperty(value = "视频MD5值")
    private String md5;
    @ApiModelProperty(value = "视频时长")
    private String duration;
    @ApiModelProperty(value = "视频大小")
    private double size;
    @ApiModelProperty(value = "视频标签", required = true)
    private String tags;
    @ApiModelProperty(value = "视频分类", required = true)
    private Integer category;
}
